package cn.liyao.web.constant;


public enum FriendReqStatus {
    同意(1),
    拒绝(2),
    忽略(3);


    private int value;

    FriendReqStatus(int value) {
        this.value = value;
    }

    public int getValue() {
        return this.value;
    }

    // 可选：实现一个静态方法来从整数值转换为枚举
    public static FriendReqStatus fromValue(int value) {
        for (FriendReqStatus type : values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid message type value: " + value);
    }
}
